package com.econ.powercloud.ems.domain;

import com.econ.powercloud.common.base.facade.util.JacksonUtil;
import com.econ.powercloud.ems.dal.entity.EmsFault;
import com.econ.powercloud.ems.pojo.EmsFaultVO;

import java.util.List;

/**
 * @author zjr
 * @create 2021/7/30 上午9:16
 * @description
 */
public class EmsFaultDO {

    /**
     * 集合：实体类->VO类
     * @param emsFaults
     * @return
     */
    public static List<EmsFaultVO> entityListToVOList(List<EmsFault> emsFaults){
        List<EmsFaultVO> emsFaultVOS = JacksonUtil.convertToList(emsFaults, EmsFaultVO.class);
        return emsFaultVOS;
    }
}
